package ml;

// TODO: Load parameters from configure file

public interface MLConstants {
	/*
	 * Online Training Parameters
	 */
	public static final int TRAINING_GROUP_LEN = 2000;
	public static final int TRAIN_INTERVAL = 1;

	/*
	 * Training Parameters
	 */
	// parameters for EURUSD_H1
	public static final int TIME_INTERVAL = 36; // 72 hours
	public static final double MIN_PROFIT = 0.00960;
	public static final double MAX_LOSS = 0.00320;

	public static final double TRAINING_SAMPLES_RATE = 1;

	public static final double MIN_TRAIN_ERROR_RATE = 1E-12;

	public static final int TRAINING_CYCLES = 100;

	// 训练过程中找到的门限还需要适当放大一点
	public static final double THRESHOLD_BIAS = 1E-8;

	/*
	 * Trading Parameters
	 */
	// parameters for EURUSD_H1
	public static final double INI_ASSET = 10000.0;
	public static final double SPREAD = 0.00030;
	public static final double TAKE_PROFIT = 10 * MIN_PROFIT;
	public static final double MIN_STOP_LOSS = 2 * MAX_LOSS;
	public static final int DECISION_TIME = 1;
	public static final double DECISION_RATE = 0.6;
	public static final double MIN_LEVERAGE = 3;
	public static final double MAX_LEVERAGE = 13;
	public static final double FIXED_VOLS = 100000; // if FIXED_VOLS is minus, then use LEVERAGE
	public static final double MAX_VOLS = 100000;

	public static boolean CHECK_CLOSE_EVERY_TIME = true;
}
